package com.itheima.myextends.继承下构造方法访问特点_08;

public class Fu {

    public Fu(int a){
        super();
        System.out.println("Fu...带参构造...");
    }
}

class Zi extends Fu{
    public Zi(){
        this(10);     //访问本类的带参构造!
        System.out.println("Zi...无参构造...");
    }

    public Zi(int a){
        super(a);      // 访问父类带参构造
        System.out.println("Zi...带参构造...");
    }
}
